package com.xiaoyu.lingdian.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xiaoyu.lingdian.core.mybatis.dao.MyBatisDAO;
import com.xiaoyu.lingdian.entity.CoreCartOrderDetail;
import com.xiaoyu.lingdian.service.CoreCartOrderDetailService;

@Service("coreCartOrderDetailService")
public class CoreCartOrderDetailServiceImpl implements CoreCartOrderDetailService {

	@Autowired
	private MyBatisDAO myBatisDAO;	
	
	@Override
	public boolean insertCoreCartOrderDetail(CoreCartOrderDetail coreCartOrderDetail) {
		myBatisDAO.insert(coreCartOrderDetail);
		return true;
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CoreCartOrderDetail> findCoreCartOrderDetailsByOrderUuid(CoreCartOrderDetail coreCartOrderDetail) {
		return myBatisDAO.findForList("getCoreCartOrderDetail", coreCartOrderDetail);
	}
	
}